<taglib name="Article" />
<!doctype html>
<html>
<head>
<include file="Public:headinc"/>

</head>
<body>
<!-- nav -->
<include file="Public:nav"/>
<!-- // nav -->
<!-- category -->
<include file="Public:category"/>
<!-- // category -->
	
	<!-- item -->
	<div class="y-wrapper">
<div class="y-divide y-boxShadow"><h2>随</h2></div>
<!-- 文字4篇 -->
<Article:list field="id,title,description,posttime,viewimage" where="articletypeid=2 or articletypeid=3 or articletypeid=4" order="id desc" limit="4"></Article:list>
<foreach name="data" item="val">	
		<div class="y-item">
			<div class="y-item-img y-pullLeft">
				<a href="{:y_u('Detail/index', 'id='.$val['id'])}"><img src="{:y_viewImage($val['viewimage'])}" width="120" height="80" alt="{$val['title']}"/></a>
			</div>
			<div class="y-item-info">
				<h2><span class="y-time y-pullRight">{:date('m/d', $val['posttime'])}</span><a href="{:y_u('Detail/index', 'id='.$val['id'])}">{$val['title']}</a></h2>
				<div class="y-item-desc">
				{$val['description']}
				</div>
			</div>
			<div class="y-clearL"></div>
		</div>
</foreach>

<!-- 技术4篇 -->
<div class="y-divide y-boxShadow"><h2>术</h2></div>
<Article:list field="id,title,description,posttime,viewimage" where="articletypeid=1" order="id desc" limit="4"></Article:list>
<foreach name="data" item="val">	
		<div class="y-item">
			<div class="y-item-img y-pullLeft">
				<a href="{:y_u('Detail/index', 'id='.$val['id'])}"><img src="{:y_viewImage($val['viewimage'])}" width="120" height="80" alt="{$val['title']}"/></a>
			</div>
			<div class="y-item-info">
				<h2><span class="y-time y-pullRight">{:date('m/d', $val['posttime'])}</span><a href="{:y_u('Detail/index', 'id='.$val['id'])}">{$val['title']}</a></h2>
				<div class="y-item-desc">
				{$val['description']}
				</div>
			</div>
			<div class="y-clearL"></div>
		</div>
</foreach>

<!-- 福利4篇 -->
<div class="y-divide y-boxShadow"><h2>福</h2></div>
<Article:list field="id,title,description,posttime,viewimage" where="articletypeid=6" order="id desc" limit="4"></Article:list>
<foreach name="data" item="val">	
		<div class="y-item">
			<div class="y-item-img y-pullLeft">
				<a href="{:y_u('Detail/index', 'id='.$val['id'])}"><img src="{:y_viewImage($val['viewimage'])}" width="120" height="80" alt="{$val['title']}"/></a>
			</div>
			<div class="y-item-info">
				<h2><span class="y-time y-pullRight">{:date('m/d', $val['posttime'])}</span><a href="{:y_u('Detail/index', 'id='.$val['id'])}">{$val['title']}</a></h2>
				<div class="y-item-desc">
				{$val['description']}
				</div>
			</div>
			<div class="y-clearL"></div>
		</div>
</foreach>
		
	</div>
	<!-- item -->
	
<!-- footer -->
<include file="Public:footer"/>
<!-- // footer -->
</body>
</html>